package com.lhn.spring5;

import org.springframework.stereotype.Component;

/**
 * 注入测试类
 *
 * @author lhn
 * @date 2021/12/24 13:54
 * @since 1.0.0
 **/
@Component
public class Book {

    /**
     * 名称
     */
    private String bName;
    /**
     * 类型
     */
    private String bAuthor;

    public Book() {
    }

    public Book(String bName, String bAuthor) {
        this.bName = bName;
        this.bAuthor = bAuthor;
    }

    public void setbName(String bName) {
        this.bName = bName;
    }

    public void setbAuthor(String bAuthor) {
        this.bAuthor = bAuthor;
    }

    public String getbName() {
        return bName;
    }

    public String getbAuthor() {
        return bAuthor;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("Book{");
        sb.append("bName='").append(bName).append('\'');
        sb.append(", bAuthor='").append(bAuthor).append('\'');
        sb.append('}');
        return sb.toString();
    }
}